package functionalInterface;

public class MyFunctionInterfaceTest {

	public static void main(String args[]) {
		MyFunctionInterface helloCall = p -> {
			return p.concat("fan");
		};
		System.out.println(helloCall.hello("sss"));
		System.out.println(helloCall.ook());
	}
}

@FunctionalInterface
interface MyFunctionInterface {
	String hello(String userName);
	default String ook() {
		return "fan";
	}
	default String ook2(){
		return "aaa";
	}
}